#!/usr/bin/python2.6
# -*- coding: utf-8 -*-

from lxml.html import tostring, html5parser
from lxml import etree
import urllib2

sheet = html5parser.fromstring(urllib2.urlopen("http://a-el.ru/catalog.htm").read())[1][7][0][0][0][0][0][1][0][0][1]
#sheet[1][7][0][0][0][0][0][1][0][0][1][])
category_id = 10
product_id = 100

#db= MySQLdb.connect(host='213.252.92.10', user='root', passwd='oS0eegeL', db='test4')
#db.set_character_set('utf8')
#cursor= db.cursor()

for tr in sheet:
	if tr[0].tag != "tr":
		print (tostring(tr[0]))
		print
